package com.lv.LvPercentage.service;


import com.lv.LvPercentage.bean.LvPercentage;
import com.lv.LvPercentage.dao.LvPercentageDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service("LvPercentage")
public class LvPercentageManager {

    @Autowired
    LvPercentageDao lvPercentageDao;

    //获取快递业务提成比例表
    public LvPercentage getLvPercentage(){
      return  lvPercentageDao.getAll().get(0);
    }

    public LvPercentage get(String id){
        return  lvPercentageDao.get(id);
    }

    public void save(LvPercentage lvPercentage) {
        lvPercentageDao.save(lvPercentage);
    }
}
